let username=/^[a-z A-Z]{3,10}$/
let user='yik123'
console.log(username.test(user));